<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>登陆</title>

<link href="@{'/public/manage/css/main.css'}" rel="stylesheet" type="text/css" />

<link rel="stylesheet" href="@{'/public/layui/css/layui.css'}" media="all">

<!-- js -->
<script src="@{'/public/layui/layui.js'}"></script>

<script type="text/javascript">

//enter键
function enterPressInfo(e,obj,type){
	var e = e || window.event; 
	if(e.keyCode == 13)
	{ 
		if(1==type){//合同明细表的ENTER键
			$('#searchBtnContract').click();
		}
		return false; 
	} 
}


function loadTable(){
		$.ajax({
				url:"@{manage.loginYZ()}",
				type:"GET",
				async:false,
				data:{
					"name":$("#name").val(),
					"pwd":$("#pwd").val()
				},
				dataType:"text",
				success:function(data){
					if(data=='true'){
						/* window.location.href="/indexManage?name="+$("#name").val(); */
						window.location.href="/levelOne?name="+$("#name").val();
					}else{
						alert("账号或者密码错误！");
						
					}
				},
				error : function(data){
					
					alert("服务器异常，请重试！")
				}
			}); 
	}
</script>
</head>
<body>


<div class="login">
    <div class="box png">
		<div class="logo png"></div>
		<div class="input">
			<div class="log">
				<div class="name">
					<label>用户名</label><input type="text" class="text" id="name" placeholder="用户名" name="name" tabindex="1">
				</div>
				<div class="pwd">
					<label>密　码</label>
					<input type="password" class="text" id="pwd" placeholder="密码" name="pwd" tabindex="2" onkeydown="enterPressInfo(event,this,1)">
					<input  id="searchBtnContract" type="button" class="submit"   onclick="loadTable()" value="登录">
					<div class="check"></div>
				</div>
				<div class="tip"></div>
			</div>
		</div>
	</div>
    <div class="air-balloon ab-1 png"></div>
	<div class="air-balloon ab-2 png"></div>
    <div class="footer"></div>
</div>

<script type="text/javascript" src="@{'/public/manage/js/jQuery.js'}"></script>
<script type="text/javascript" src="@{'/public/manage/js/fun.base.js'}"></script>
<script type="text/javascript" src="@{'/public/manage/js/script.js'}"></script>




</body>
</html>